/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-08-20 11:45:10
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 车厂端-事业部项目方案分页查询（只能查询本事业部创建和下发到该事业部）
export const getOrgProjectProgramList = _params => axios.get(`${SERVER.CMSCLOUD_MARKET}/projectProgram/query/org`, { params: _params, menuId: '-1' });
//车厂端-事业部项目方案分页查询（只能查询本事业部创建和下发到该事业部和全网下发的）
export const getOrgProjectProgramListAll = _params => axios.get(`${SERVER.CMSCLOUD_MARKET}/projectProgram/query/orgAll`, { params: _params, menuId: '-1' });
// 车厂端-事业部项目方案导出（只能导出本事业部创建和下发到该事业部）
export const exportOrgProjectProgramList = params => axios.post(`${SERVER.CMSCLOUD_MARKET}/projectProgram/query/org`, params, { responseType: 'arraybuffer', timeout: 200000, menuId: '-1' });
// 获得登录人信息
export const getLoginUser = _params => axios.get(`${SERVER.CMSCLOUD_MARKET}/projectProgram/query/user`, { params: _params, menuId: '-1' });
